﻿using System;
using System.Collections.Generic;

namespace Nop.Core.Domain.XJ
{
	/// <summary>
	/// 巡检记录临时表
	/// </summary>
	public class XJInspectionTemp
	{
		public XJInspectionTemp()
		{
			this.Categorys = new List<XJEquipmentCategory>();
			this.Places = new List<XJPlace>();
		}
		public int Id { get; set; }
		/// <summary>
		/// 类型：日巡检、周巡检、月巡检
		/// <see cref="InspectionTypeEnum"/>
		/// </summary>
		public int TypeId { get; set; }
		public string TypeName { get; set; }
		/// <summary>
		/// 巡检计划Id
		/// </summary>
		public int InspectionPlanId { get; set; }
		/// <summary>
		/// 计划单号
		/// </summary>
		public string PNo { get; set; }
		/// <summary>
		/// 计划名称
		/// </summary>
		public string Name { get; set; }
		/// <summary>
		/// 维修申请Id
		/// </summary>
		public int MaintenanceId { get; set; }
		/// <summary>
		/// 维修状态
		/// </summary>
		public int MaintenanceState { get; set; }
		/// <summary>
		/// 维修单号
		/// </summary>
		public string XNo { get; set; }
		/// <summary>
		/// 巡检目标
		/// </summary>
		public int AimId { get; set; }
		public string AimName { get; set; }
		///// <summary>
		///// 设施设备类别
		///// <see cref="XJEquipmentCategory"/>
		///// </summary>
		//public int[] CategoryIds { get; set; }
		public string CategoryNames { get; set; }
		/// <summary>
		/// 巡检点
		/// </summary>
		public string PlaceNames { get; set; }
		/// <summary>
		/// 巡检内容
		/// </summary>
		public string Content { get; set; }
		/// <summary>
		/// 班组Id
		/// </summary>
		public int TeamId { get; set; }
		public string TeamName { get; set; }
		/// <summary>
		/// 人员Id
		/// </summary>
		public int PersonId { get; set; }
		public string PersonName { get; set; }
		/// <summary>
		/// 巡检备注
		/// </summary>
		public string Comment { get; set; }
		/// <summary>
		/// 创建人
		/// </summary>
		public int CustomerId { get; set; }
		public string CustomerName { get; set; }
		/// <summary>
		/// 创建时间
		/// </summary>
		public DateTime CreatedOn { get; set; }
		public IList<XJEquipmentCategory> Categorys { get; set; }
		public IList<XJPlace> Places { get; set; }
	}

	public class InspectionHistoryTemp
	{
		public int Id { get; set; }
		/// <summary>
		/// 巡检备注
		/// </summary>
		public string Comment { get; set; }
		/// <summary>
		/// 创建人
		/// </summary>
		public int CustomerId { get; set; }
		public string CustomerName { get; set; }
		/// <summary>
		/// 部门
		/// </summary>
		public int DepartmentId { get; set; }
		public string DepartmentName { get; set; }
		/// <summary>
		/// 创建时间
		/// </summary>
		public DateTime CreatedOn { get; set; }
		/// <summary>
		/// 维修Id
		/// </summary>
		public int MaintenanceId { get; set; }
		/// <summary>
		/// 维修编号
		/// </summary>
		public string XNo { get; set; }
	}
}
